﻿@model CodeStash.Models.Settings.ChangeSettingsModel
@using CodeStash.ExtensionsMethods

<div id="AjaxSettingsContents">
	@using (Html.BeginForm("ChangeSettings", "Settings", FormMethod.Post, new { id = "ChangeSettingsForm" }))
	{
		@Html.AntiForgeryToken("ChangeSettings")
		
		<h2>Setup Your Personal Settings</h2>
		<p>You can alter your own settings by changing the values below</p>
		
		<input id="successfulEdit" type="hidden" value="@ViewData["successfulEdit"]" />
		
		<div class="headedPanel">
            <div id="settingsInner">
                <strong>Maximum Snippets To Display</strong>
			    <div>
				    @Html.TextBoxFor((x) => x.MaxSnippetsToDisplay,
				    new Dictionary<string, object> { { "style", "width:300px" } })
				    &nbsp;
				    @Html.ValidationMessageFor((x) => x.MaxSnippetsToDisplay)
			    </div>
			    <br />

			    <strong>Snippet Highlighting CSS</strong>
			    <div>
				    @Html.ComboFor(x => x.HighlightingCSS, x => x.HighlightingCSSList, x => x.Id, x => x.CSSName,
					    new Dictionary<string, object> { 
						    { "style", "width:300px" }, 
						    { "class", "selectBox"  }})
				    &nbsp;
				    @Html.ValidationMessageFor((x) => x.HighlightingCSS)
			    </div>

                <p>
                    <br />
                    <input id="Submit" type="button" value="Save" />
                    <br />
                </p>
            </div>
			
		</div>

     
        
		
		
			  
				
		
    }
</div>
